﻿//分析报告图表主方法
function anaChart(dom, demo,size) {
    if (!demos[demo]) return "图表模板不存在";
    demos[demo].initialize();
    var option = demos[demo].option;
    var chart = echarts.init(dom[0]);
    var bigChart;
    chart.setOption(option);
    var scrollTop = 0;
    dom.on("click", function () {
        scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
        $("body").append('<div id="bigChartArea" style="position:absolute;display:none;"></div>');
        layui.use('layer', function () {
            var layer = layui.layer;
            var index = layer.open({
                type: 1
                , title: size == '2:1' ? '请横屏查看' :'请竖屏查看'
                , shade: 0.5
                , id: "bigChartLayer"
                , maxmin: false
                , scrollbar: false
                , content: $("#bigChartArea")
                , zIndex: layer.zIndex //重点1
                , success: function (layero) {
                    var bigChartDom = $("#bigChartArea");
                    demos[demo].bigInitialize();
                    option = demos[demo].option;
                    setTimeout(function () {
                        //此处要等layer弹出才能初始化高度，所以等待200ms
                        domResize();
                        bigChart = echarts.init(bigChartDom[0]);
                        bigChart.setOption(option);
                        window.onresize = function () {
                            if ($(".layui-layer-content").height() != undefined) {//判断弹窗是否处于打开状态
                                layer.full(index);
                                setTimeout(function () {
                                    //此处layer全屏方法需要时间之后才能取到宽度，所以等待100ms
                                    domResize();
                                    bigChart.resize();
                                }, 100);
                            }
                        }
                    }, 200);
                    function domResize() {
                        var winHeight = $("#bigChartLayer").height();
                        var winWidth = $("#bigChartLayer").width();
                        var top = 0;
                        var left = 0;
                        var chartHeight = 0;
                        var chartWidth = 0;
                        if (winHeight > winWidth) {
                            //手机竖屏
                            chartWidth = winWidth;
                            if (size == "2:1") {
                                chartHeight = chartWidth / 1.6;//留出legend空间
                            }
                            else if (size == "1:1") {
                                chartHeight = chartWidth + 152;
                            }
                            left = 0;
                            top = (winHeight - chartHeight) / 2;
                        }
                        else {
                            //手机横屏或电脑
                            chartHeight = winHeight;
                            if (size == "2:1") {
                                chartWidth = chartHeight * 1.6;//留出legend空间
                            }
                            else if (size == "1:1") {
                                chartWidth = chartHeight - 152;
                            }
                            left = (winWidth - chartWidth) / 2;;
                            top = 0;
                        }
                        bigChartDom.css({
                            width: chartWidth + "px",
                            height: chartHeight + "px",
                            left: left + "px",
                            top: top + "px"
                        });
                    }
                }
                , end: function () {
                    //181211：发现弹层打开后父页面滚动条回调到顶部，推测可能和bigChartArea出在页面中有关，记录下滚动条位置销毁后跳转
                    window.scrollTo(0, scrollTop)
                    $("#bigChartArea").remove();
                }    
            });
            layer.full(index);
        });
    });
}
var demos = {
    ROE: {
        option: {
            title: {
                text: "产权收益率-ROE",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['本公司', '行业平均'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value,"percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '本公司',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '行业平均',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].roe);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].roe_hy);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    ROS: {
        option: {
            title: {
                text: "销售收益率-ROS",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['本公司', '行业平均'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '本公司',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '行业平均',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].ros);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].ros_hy);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    ATO: {
        option: {
            title: {
                text: "资产周转率-ATO",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['本公司', '行业平均'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '本公司',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '行业平均',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].ato);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].ato_hy);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    productsCount: {
        option: {
            title: {
                text: "产品开发统计",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                show: false
            },
            legend: {
                show: false,
                type: "scroll",
                top: 22,
                left: "left",
                data: ['公司累计产品开发数量', '全行业平均累计产品开发数量', '公司同时运营的产品数量', '全行业平均同时运营的产品数量']
            },
            xAxis: {
                type: 'category',
                data: [],
            },
            yAxis: [
                {
                    type: 'value',
                },
                {
                    type: 'value',
                }
            ],
            series: [
                {
                    name: '公司累计产品开发数量',
                    type: 'line',
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    data: []
                },
                {
                    name: '全行业平均累计产品开发数量',
                    type: 'line',
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    data: []
                },
                {
                    name: '公司同时运营的产品数量',
                    type: 'bar',
                    yAxisIndex: 1,
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                },
                {
                    name: '全行业平均同时运营的产品数量',
                    type: 'bar',
                    yAxisIndex: 1,
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 24,
                top: 10,
                right: 24,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_week[i].product_num_all, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_week[i].product_num_all_hy, "float"));
                this.option.series[2].data.push(numType(fe_rep.fe_rep_cust_week[i].product_num_now, "float"));
                this.option.series[3].data.push(numType(fe_rep.fe_rep_cust_week[i].product_num_now_hy, "float"));
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 80,
                right: "10%",
                bottom: 40
            };
        }
    },
    linesUnused: {
        option: {
            title: {
                text: "生产线闲置浪费情况",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['生产线浪费比营业额同行业排名', '库存行政成本的同行业排名'],
                type: "scroll",
                top: 22,
                left:"left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "int")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '生产线浪费比营业额同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '库存行政成本的同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.yAxis.max = fe_rep.fe_rep_cust.hy_custs;
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].cwae_rank);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].caf2_rank);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    channelsCount: {
        option: {
            title: {
                text: "渠道数量统计图",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "float")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            legend: {
                data: ['本公司小渠道数量', '本公司中渠道数量', '本公司大渠道数量', '行业平均小渠道数量', '行业平均中渠道数量', '行业平均大渠道数量'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            xAxis: {
                type: 'category',
                data: [],
            },
            yAxis: {
                type: 'value',
            },
            series: [
                {
                    name: '本公司小渠道数量',
                    type: 'bar',
                    stack: '本公司',
                    data: []
                },
                {
                    name: '本公司中渠道数量',
                    type: 'bar',
                    stack: '本公司',
                    data: []
                },
                {
                    name: '本公司大渠道数量',
                    type: 'bar',
                    stack: '本公司',
                    data: []
                },
                {
                    name: '行业平均小渠道数量',
                    type: 'bar',
                    stack: '行业平均',
                    data: []
                },
                {
                    name: '行业平均中渠道数量',
                    type: 'bar',
                    stack: '行业平均',
                    data: []
                },
                {
                    name: '行业平均大渠道数量',
                    type: 'bar',
                    stack: '行业平均',
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            this.option.series[4].data = [];
            this.option.series[5].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].qd_num1);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].qd_num2);
                this.option.series[2].data.push(fe_rep.fe_rep_cust_month[i].qd_num3);
                this.option.series[3].data.push(fe_rep.fe_rep_cust_month[i].qd_num1_hy);
                this.option.series[4].data.push(fe_rep.fe_rep_cust_month[i].qd_num2_hy);
                this.option.series[5].data.push(fe_rep.fe_rep_cust_month[i].qd_num3_hy);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    mktInput: {
        option: {
            title: {
                text: "市场投入统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                inverse: true,
                min: 1,
            },
            legend: {
                data: ['渠道投入同行业排名', '广告投入投入同行业排名'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "int")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '渠道投入同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '广告投入投入同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.yAxis.max = fe_rep.fe_rep_cust.hy_custs;
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_month[i].qd_rank);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_month[i].ad_rank);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    advantageRange: {
        option: {
            title: {
                text: "竞争力排名统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                inverse: true,
                min: 1,
            },
            legend: {
                data: ['高端竞争力同行业排名', '中端竞争力同行业排名', '低端竞争力同行业排名'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "int")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '高端竞争力同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '中端竞争力同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '低端竞争力同行业排名',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.yAxis.max = fe_rep.fe_rep_cust.hy_custs;
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_cust_week[i].jzl1_rank);
                this.option.series[1].data.push(fe_rep.fe_rep_cust_week[i].jzl2_rank);
                this.option.series[2].data.push(fe_rep.fe_rep_cust_week[i].jzl3_rank);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    productsLife: {
        option: {
            title: {
                text: "公司所有产品生命周期概览",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                show: false
            },
            legend: {
                data: [],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            xAxis: {
                type: 'category',
                data: [],
            },
            yAxis: {
                type: 'value',
                axisLabel: {
                    show:false
                }
            },
            series: []
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis.axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.legend.data = [];
            this.option.series = [];
            var pyfid = "";
            var pdata = [];
            for (let i = 0; i < fe_rep._fe_rep_product.length; i++) {
                pyfid = "p_" + fe_rep._fe_rep_product[i].nv1;
                pdata = [];
                this.option.legend.data.push(fe_rep._fe_rep_product[i].nv9);
                for (let j = 0; j < fe_rep.fe_rep_product_lines.length; j++) {
                    if (i == 0) this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_lines[j].hanad, "date2"));
                    pdata.push(fe_rep.fe_rep_product_lines[j][pyfid]);
                }
                this.option.series.push(
                    {
                        name: fe_rep._fe_rep_product[i].nv9,
                        type: 'line',
                        lineStyle: {
                            normal: {
                                width: 1,
                            }
                        },
                        data: pdata
                    }
                );
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis.axisLabel.show = true;
            this.option.grid = {
                left: 107,
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    chainFlow: {
        option: {
            title: {
                text: "上下游交易统计图",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "money")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "percent")}`;
                    }
                    return str;
                },
                show: false
            },
            legend: {
                data: ['向下游销售总额', '本公司于行业向下游交易总额占比'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            xAxis: {
                type: 'category',
                data: [],
            },
            yAxis: [
                {
                    type: 'value', 
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    },
                    max: 1
                }
            ],
            series: [
                {
                    name: '向下游销售总额',
                    type: 'line',
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    data: []
                },
                {
                    name: '本公司于行业向下游交易总额占比',
                    type: 'bar',
                    yAxisIndex: 1,
                    data: []
                }
            ]
        },
        initialize: function () {
            if (fe_rep.fe_rep_cust.hy == '0003') {
                this.option = {
                    graphic: {
                        elements: [
                            {
                                type: "text",
                                left: "center",
                                top: "middle",
                                style: {
                                    text: "零售商无上下游交易统计图",
                                    font: 'normal 20px "Microsoft YaHei", sans-serif',
                                    textAlign: 'center'
                                }
                            }
                        ]
                    }
                }
            }
            else {
                this.option.legend.show = false;
                this.option.tooltip.show = false;
                this.option.title.show = false;
                this.option.yAxis[0].axisLabel.show = false;
                this.option.yAxis[1].axisLabel.show = false;
                this.option.grid = {
                    left: 10,
                    top: 10,
                    right: 10,
                    bottom: 24
                };
                this.option.xAxis.data = [];
                this.option.series[0].data = [];
                this.option.series[1].data = [];
                for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                    this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                    this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_month[i].orders, "float"));
                    this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_month[i].orders_pre, "float"));
                }
            }
        },
        bigInitialize: function () {
            if (fe_rep.fe_rep_cust.hy != '0003') {
                this.option.legend.show = true;
                this.option.tooltip.show = true;
                this.option.title.show = true;
                this.option.yAxis[0].axisLabel.show = true;
                this.option.yAxis[1].axisLabel.show = true;
                this.option.grid = {
                    left: 107,
                    top: 80,
                    right: "10%",
                    bottom: 40
                };
            }
        }
    },
    mktBudget: {
        option: {
            title: {
                text: "市场部预算控制图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
            },
            legend: {
                data: ['当周加权预算增量', '当周加权预算消耗', '当周加权预算变动'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '当周加权预算增量',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#91C7AE',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算消耗',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#C23531',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算变动',
                type: 'bar',
                data: []
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 24,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            var scys = 0;
            var scys_color = "";
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                scys = parseFloat(fe_rep.fe_rep_cust_week[i].scadd) + parseFloat(fe_rep.fe_rep_cust_week[i].sccost);
                if (scys >= 0) scys_color = '#91C7AE'; else scys_color = '#C23531';
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_week[i].scadd, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_week[i].sccost, "float"));
                this.option.series[2].data.push({ value: numType(scys, "float"), itemStyle: { normal: { color: scys_color } } });            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    bdBudget: {
        option: {
            title: {
                text: "商拓部预算控制图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
            },
            legend: {
                data: ['当周加权预算增量', '当周加权预算消耗', '当周加权预算变动'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '当周加权预算增量',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#91C7AE',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算消耗',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#C23531',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算变动',
                type: 'bar',
                data: []
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 24,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            var stys = 0;
            var stys_color = "";
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                stys = parseFloat(fe_rep.fe_rep_cust_week[i].stadd) + parseFloat(fe_rep.fe_rep_cust_week[i].stcost);
                if (stys >= 0) stys_color = '#91C7AE'; else stys_color = '#C23531';
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_week[i].stadd, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_week[i].stcost, "float"));
                this.option.series[2].data.push({ value: numType(stys, "float"), itemStyle: { normal: { color: stys_color } } });
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    operateBudget: {
        option: {
            title: {
                text: "运营部预算控制图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
            },
            legend: {
                data: ['当周加权预算增量', '当周加权预算消耗', '当周加权预算变动'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '当周加权预算增量',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#91C7AE',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算消耗',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#C23531',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周加权预算变动',
                type: 'bar',
                data: []
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 24,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            var yyys = 0;
            var yyys_color = "";
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                yyys = parseFloat(fe_rep.fe_rep_cust_week[i].yyadd) + parseFloat(fe_rep.fe_rep_cust_week[i].yycost);
                if (yyys >= 0) yyys_color = '#91C7AE'; else yyys_color = '#C23531';
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_week[i].yyadd, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_week[i].yycost, "float"));
                this.option.series[2].data.push({ value: numType(yyys, "float"), itemStyle: { normal: { color: yyys_color } } });
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    liquidityControlBar: {
        option: {
            title: {
                text: "公司内流动性控制柱状图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                min: function (value) {
                    if (value.min < -30) return -30;
                    return value.min;
                }
            },
            legend: {
                data: ['加权周均现金余额', '加权市场部预算余额', '加权商拓部预算余额', '加权运营部预算余额'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '加权周均现金余额',
                    type: 'bar',
                    stack: '1',
                    data: []
                },
                {
                    name: '加权市场部预算余额',
                    type: 'bar',
                    stack: '1',
                    data: []
                },
                {
                    name: '加权商拓部预算余额',
                    type: 'bar',
                    stack: '1',
                    data: []
                },
                {
                    name: '加权运营部预算余额',
                    type: 'bar',
                    stack: '1',
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 24,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_week[i].cash_weighted, "float"));
                this.option.series[1].data.push(numType(-fe_rep.fe_rep_cust_week[i].scre_weighted, "float"));
                this.option.series[2].data.push(numType(-fe_rep.fe_rep_cust_week[i].stre_weighted, "float"));
                this.option.series[3].data.push(numType(-fe_rep.fe_rep_cust_week[i].yyre_weighted, "float"));
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    liquidityControlScatter: {
        option: {
            title: {
                text: "流动性控制指标散点图",
                show: false
            },
            xAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '总预算排名',
                fontSize: 14,
            },
            yAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '现金余额排名',
                fontSize: 14,
            },
            graphic: null,
            tooltip: {
                trigger: 'item',
                formatter: '{b}',
                show: false
            },
            series: [
                {
                    symbolSize: 1,
                    itemStyle: {
                        normal: {
                            color: '#048',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    type: 'scatter'
                },
                {
                    symbolSize: 5,
                    itemStyle: {
                        normal: {
                            color: '#f40',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    markLine: {
                        silent: true,
                        show: false,
                        lineStyle: {
                            type: 'dotted',
                        },
                        data: []
                    },
                    type: 'scatter'
                }
            ]
        },
        initialize: function () {
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.graphic = null;
            this.option.grid = {
                left: 24,
                top: 24,
                right: 24,
                bottom: 24
            };
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[1].markLine.data = [];
            if (fe_rep.fe_rep_cust_week.length > 1) {
                this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_cust_week[0].ysre_rank, fe_rep.fe_rep_cust_week[0].cashweek_rank] }]);
            }
            for (let i = 0; i < fe_rep.fe_rep_cust_week.length; i++) {
                if (i == 0) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"), value: [fe_rep.fe_rep_cust_week[i].ysre_rank, fe_rep.fe_rep_cust_week[i].cashweek_rank], symbolSize: 20, itemStyle: { normal: { color: '#00F064' } } });
                }
                else if (i == fe_rep.fe_rep_cust_week.length - 1) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"), value: [fe_rep.fe_rep_cust_week[i].ysre_rank, fe_rep.fe_rep_cust_week[i].cashweek_rank], symbolSize: 20, itemStyle: { normal: { color: '#FF0064' } } });
                }
                else {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_cust_week[i].gamedate, "date2"), value: [fe_rep.fe_rep_cust_week[i].ysre_rank, fe_rep.fe_rep_cust_week[i].cashweek_rank] });
                }
                if (fe_rep.fe_rep_cust_week.length > 1) {
                    this.option.series[1].markLine.data[i].push({ coord: [fe_rep.fe_rep_cust_week[i].ysre_rank, fe_rep.fe_rep_cust_week[i].cashweek_rank] });
                    if (i < fe_rep.fe_rep_cust_week.length - 1) {
                        this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_cust_week[i].ysre_rank, fe_rep.fe_rep_cust_week[i].cashweek_rank] }]);
                    }
                }
            }
            this.option.series[1].markLine.data.push({ xAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
            this.option.series[1].markLine.data.push({ yAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
        },
        bigInitialize: function () {
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.grid = {
                left: 36,
                top: 112,
                right: 36,
                bottom: 112
            };
            this.option.graphic = {
                elements: [
                    {
                        type: "text",
                        left: 5,
                        top: 36,
                        style: {
                            text: "公司现金紧缺",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        top: 36,
                        style: {
                            text: "预算控制失效",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    }, {
                        type: "text",
                        left: 5,
                        bottom: 0,
                        style: {
                            text: "公司流动完美",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        bottom: 0,
                        style: {
                            text: "预算流动紧缺",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    },
                ]
            };
        }
    },
    scaleCostControl: {
        option: {
            title: {
                text: "总体规模性成本控制",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "money")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            legend: {
                data: ['本公司每个月规模性成本（行政成本+高管费用）', '本公司每个月的营业额'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            xAxis: {
                type: 'category',
                data: [],
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            series: [
                {
                    name: '本公司每个月规模性成本（行政成本+高管费用）',
                    type: 'line',
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    data: []
                },
                {
                    name: '本公司每个月的营业额',
                    type: 'bar',
                    yAxisIndex: 1,
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_cust_month.length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_cust_month[i].gamedate, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_cust_month[i].scalecost, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_cust_month[i].ct, "float"));
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 107,
                top: 80,
                right: 107,
                bottom: 40
            };
        }
    },
    bostonMatrixIntent: {
        option: {
            title: {
                text: "波士顿矩阵-策略图",
                show: false
            },
            xAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '投资中心强度',
                fontSize: 14,
            },
            yAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '利润中心强度',
                fontSize: 14,
            },
            graphic: null,
            tooltip: {
                trigger: 'item',
                formatter: '{b}',
                show: false
            },
            series: [
                {
                    symbolSize: 1,
                    itemStyle: {
                        normal: {
                            color: '#048',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    type: 'scatter'
                },
                {
                    symbolSize: 5,
                    itemStyle: {
                        normal: {
                            color: '#f40',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    markLine: {
                        silent: true,
                        show: false,
                        lineStyle: {
                            type: 'dotted',
                        },
                        data: []
                    },
                    type: 'scatter'
                }
            ]
        },
        initialize: function () {
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.graphic = null;
            this.option.grid = {
                left: 24,
                top: 24,
                right: 24,
                bottom: 24
            };
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[1].markLine.data = [];
            if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][0].策略_x, fe_rep.fe_rep_product_scatter[YFID][0].策略_y] }]);
            }
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                if (i == 0) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].策略_x, fe_rep.fe_rep_product_scatter[YFID][i].策略_y], symbolSize: 20, itemStyle: { normal: { color: '#00F064' } } });
                }
                else if (i == fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].策略_x, fe_rep.fe_rep_product_scatter[YFID][i].策略_y], symbolSize: 20, itemStyle: { normal: { color: '#FF0064' } } });
                }
                else {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].策略_x, fe_rep.fe_rep_product_scatter[YFID][i].策略_y] });
                }
                if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                    this.option.series[1].markLine.data[i].push({ coord: [fe_rep.fe_rep_product_scatter[YFID][i].策略_x, fe_rep.fe_rep_product_scatter[YFID][i].策略_y] });
                    if (i < fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                        this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][i].策略_x, fe_rep.fe_rep_product_scatter[YFID][i].策略_y] }]);
                    }
                }
            }
            this.option.series[1].markLine.data.push({ xAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
            this.option.series[1].markLine.data.push({ yAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
        },
        bigInitialize: function () {
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.grid = {
                left: 36,
                top: 112,
                right: 36,
                bottom: 112
            };
            this.option.graphic = {
                elements: [
                    {
                        type: "text",
                        left: 5,
                        top: 36,
                        style: {
                            text: "金牛产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        top: 36,
                        style: {
                            text: "明星产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    }, {
                        type: "text",
                        left: 5,
                        bottom: 0,
                        style: {
                            text: "瘦狗产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        bottom: 0,
                        style: {
                            text: "问题产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    },
                ]
            };
        }
    },
    bostonMatrixResult: {
        option: {
            title: {
                text: "波士顿矩阵-结果图",
                show: false
            },
            xAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '投资力度评价',
                fontSize: 14,
            },
            yAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '利润绩效评价',
                fontSize: 14,
            },
            graphic: null,
            tooltip: {
                trigger: 'item',
                formatter: '{b}',
                show: false
            },
            series: [
                {
                    symbolSize: 1,
                    itemStyle: {
                        normal: {
                            color: '#048',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    type: 'scatter'
                },
                {
                    symbolSize: 5,
                    itemStyle: {
                        normal: {
                            color: '#f40',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    markLine: {
                        silent: true,
                        show: false,
                        lineStyle: {
                            type: 'dotted',
                        },
                        data: []
                    },
                    type: 'scatter'
                }
            ]
        },
        initialize: function () {
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.graphic = null;
            this.option.grid = {
                left: 24,
                top: 24,
                right: 24,
                bottom: 24
            };
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[1].markLine.data = [];
            if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][0].结果_x, fe_rep.fe_rep_product_scatter[YFID][0].结果_y] }]);
            }
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                if (i == 0) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].结果_x, fe_rep.fe_rep_product_scatter[YFID][i].结果_y], symbolSize: 20, itemStyle: { normal: { color: '#00F064' } } });
                }
                else if (i == fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].结果_x, fe_rep.fe_rep_product_scatter[YFID][i].结果_y], symbolSize: 20, itemStyle: { normal: { color: '#FF0064' } } });
                }
                else {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].结果_x, fe_rep.fe_rep_product_scatter[YFID][i].结果_y] });
                }
                if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                    this.option.series[1].markLine.data[i].push({ coord: [fe_rep.fe_rep_product_scatter[YFID][i].结果_x, fe_rep.fe_rep_product_scatter[YFID][i].结果_y] });
                    if (i < fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                        this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][i].结果_x, fe_rep.fe_rep_product_scatter[YFID][i].结果_y] }]);
                    }
                }
            }
            this.option.series[1].markLine.data.push({ xAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
            this.option.series[1].markLine.data.push({ yAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
        },
        bigInitialize: function () {
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.grid = {
                left: 36,
                top: 112,
                right: 36,
                bottom: 112
            };
            this.option.graphic = {
                elements: [
                    {
                        type: "text",
                        left: 5,
                        top: 36,
                        style: {
                            text: "金牛产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        top: 36,
                        style: {
                            text: "明星产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    }, {
                        type: "text",
                        left: 5,
                        bottom: 0,
                        style: {
                            text: "瘦狗产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        bottom: 0,
                        style: {
                            text: "问题产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    },
                ]
            };
        }
    },
    oldBostonMatrixIntent: {
        option: {
            title: {
                text: "波士顿矩阵-策略图(归一化前)",
                show: false
            },
            xAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '投资中心强度',
                fontSize: 14,
            },
            yAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '利润中心强度',
                fontSize: 14,
            },
            graphic: null,
            tooltip: {
                trigger: 'item',
                formatter: '{b}',
                show: false
            },
            series: [
                {
                    symbolSize: 1,
                    itemStyle: {
                        normal: {
                            color: '#048',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    type: 'scatter'
                },
                {
                    symbolSize: 5,
                    itemStyle: {
                        normal: {
                            color: '#f40',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    markLine: {
                        silent: true,
                        show: false,
                        lineStyle: {
                            type: 'dotted',
                        },
                        data: []
                    },
                    type: 'scatter'
                }
            ]
        },
        initialize: function () {
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.graphic = null;
            this.option.grid = {
                left: 24,
                top: 24,
                right: 24,
                bottom: 24
            };
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[1].markLine.data = [];
            if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][0].投资中心2, fe_rep.fe_rep_product_scatter[YFID][0].利润中心] }]);
            }
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                if (i == 0) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资中心2, fe_rep.fe_rep_product_scatter[YFID][i].利润中心], symbolSize: 20, itemStyle: { normal: { color: '#00F064' } } });
                }
                else if (i == fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资中心2, fe_rep.fe_rep_product_scatter[YFID][i].利润中心], symbolSize: 20, itemStyle: { normal: { color: '#FF0064' } } });
                }
                else {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资中心2, fe_rep.fe_rep_product_scatter[YFID][i].利润中心] });
                }
                if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                    this.option.series[1].markLine.data[i].push({ coord: [fe_rep.fe_rep_product_scatter[YFID][i].投资中心2, fe_rep.fe_rep_product_scatter[YFID][i].利润中心] });
                    if (i < fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                        this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][i].投资中心2, fe_rep.fe_rep_product_scatter[YFID][i].利润中心] }]);
                    }
                }
            }
            this.option.series[1].markLine.data.push({ xAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
            this.option.series[1].markLine.data.push({ yAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
        },
        bigInitialize: function () {
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.grid = {
                left: 36,
                top: 112,
                right: 36,
                bottom: 112
            };
            this.option.graphic = {
                elements: [
                    {
                        type: "text",
                        left: 5,
                        top: 36,
                        style: {
                            text: "金牛产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        top: 36,
                        style: {
                            text: "明星产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    }, {
                        type: "text",
                        left: 5,
                        bottom: 0,
                        style: {
                            text: "瘦狗产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        bottom: 0,
                        style: {
                            text: "问题产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    },
                ]
            };
        }
    },
    oldBostonMatrixResult: {
        option: {
            title: {
                text: "波士顿矩阵-结果图(归一化前)",
                show: false
            },
            xAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '投资力度评价',
                fontSize: 14,
            },
            yAxis: {
                min: 0,
                max: 1,
                nameLocation: 'middle',
                nameTextStyle: {
                    color: "#000",
                },
                name: '利润绩效评价',
                fontSize: 14,
            },
            graphic: null,
            tooltip: {
                trigger: 'item',
                formatter: '{b}',
                show: false
            },
            series: [
                {
                    symbolSize: 1,
                    itemStyle: {
                        normal: {
                            color: '#048',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    type: 'scatter'
                },
                {
                    symbolSize: 5,
                    itemStyle: {
                        normal: {
                            color: '#f40',
                            opacity: 0.4,
                        },
                    },
                    data: [],
                    markLine: {
                        silent: true,
                        show: false,
                        lineStyle: {
                            type: 'dotted',
                        },
                        data: []
                    },
                    type: 'scatter'
                }
            ]
        },
        initialize: function () {
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,0)";
            this.option.graphic = null;
            this.option.grid = {
                left: 24,
                top: 24,
                right: 24,
                bottom: 24
            };
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[1].markLine.data = [];
            if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][0].投资力度2, fe_rep.fe_rep_product_scatter[YFID][0].利润绩效] }]);
            }
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                if (i == 0) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资力度2, fe_rep.fe_rep_product_scatter[YFID][i].利润绩效], symbolSize: 20, itemStyle: { normal: { color: '#00F064' } } });
                }
                else if (i == fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资力度2, fe_rep.fe_rep_product_scatter[YFID][i].利润绩效], symbolSize: 20, itemStyle: { normal: { color: '#FF0064' } } });
                }
                else {
                    this.option.series[1].data.push({ name: numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"), value: [fe_rep.fe_rep_product_scatter[YFID][i].投资力度2, fe_rep.fe_rep_product_scatter[YFID][i].利润绩效] });
                }
                if (fe_rep.fe_rep_product_scatter[YFID].length > 1) {
                    this.option.series[1].markLine.data[i].push({ coord: [fe_rep.fe_rep_product_scatter[YFID][i].投资力度2, fe_rep.fe_rep_product_scatter[YFID][i].利润绩效] });
                    if (i < fe_rep.fe_rep_product_scatter[YFID].length - 1) {
                        this.option.series[1].markLine.data.push([{ coord: [fe_rep.fe_rep_product_scatter[YFID][i].投资力度2, fe_rep.fe_rep_product_scatter[YFID][i].利润绩效] }]);
                    }
                }
            }
            this.option.series[1].markLine.data.push({ xAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
            this.option.series[1].markLine.data.push({ yAxis: 0.5, lineStyle: { normal: { color: '#333', type: 'solid', width: 2 } } });
        },
        bigInitialize: function () {
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.xAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.yAxis.nameTextStyle.color = "rgba(0,0,0,1)";
            this.option.grid = {
                left: 36,
                top: 112,
                right: 36,
                bottom: 112
            };
            this.option.graphic = {
                elements: [
                    {
                        type: "text",
                        left: 5,
                        top: 36,
                        style: {
                            text: "金牛产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        top: 36,
                        style: {
                            text: "明星产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    }, {
                        type: "text",
                        left: 5,
                        bottom: 0,
                        style: {
                            text: "瘦狗产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'left',
                        }
                    }, {
                        type: "text",
                        right: 5,
                        bottom: 0,
                        style: {
                            text: "问题产品",
                            font: 'lighter 16px "Microsoft YaHei", sans-serif',
                            textAlign: 'right',
                        }
                    },
                ]
            };
        }
    },
    bostonLineIntent: {
        option: {
            title: {
                text: "波士顿折线-策略图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['投资中心', '利润中心'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '投资中心',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '利润中心',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_scatter[YFID][i].投资中心2);
                this.option.series[1].data.push(fe_rep.fe_rep_product_scatter[YFID][i].利润中心);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    bostonLineResult: {
        option: {
            title: {
                text: "波士顿折线-结果图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value'
            },
            legend: {
                data: ['投资力度', '利润绩效'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '投资力度',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '利润绩效',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 28,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_scatter[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_scatter[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_scatter[YFID][i].投资力度2);
                this.option.series[1].data.push(fe_rep.fe_rep_product_scatter[YFID][i].利润绩效);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: "10%",
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    balancePAM: {
        option: {
            title: {
                text: "产销对比图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                axisLabel: {
                    show:false
                }
            },
            legend: {
                data: ['当周生产量', '当周销货量', '库存变动'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "money")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '当周生产量',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#91C7AE',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周销货量',
                data: [],
                itemStyle: {
                    normal: {
                        color: '#C23531',
                    },
                },
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '库存变动',
                type: 'bar',
                data: []
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis.axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_product_week[YFID][i].ana26, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_product_week[YFID][i].z_xl, "float"));
                this.option.series[2].data.push({ value: numType(parseFloat(fe_rep.fe_rep_product_week[YFID][i].ana26) + parseFloat(fe_rep.fe_rep_product_week[YFID][i].z_xl), "float"), itemStyle: { normal: { color: (parseFloat(fe_rep.fe_rep_product_week[YFID][i].ana26) + parseFloat(fe_rep.fe_rep_product_week[YFID][i].z_xl)) > 0 ? '#91C7AE' : '#C23531' } } });
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis.axisLabel.show = true;
            this.option.grid = {
                left: 72,
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    orderManage: {
        option: {
            title: {
                text: "市场订单管理图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                axisLabel: {
                    show: false
                }
            },
            legend: {
                data: ['当周总订单数','当周飞订单数'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "money")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [{
                name: '当周总订单数',
                data: [],
                lineStyle: {
                    normal: {
                        width: 1,
                    }
                },
                type: 'line'
            },
            {
                name: '当周飞订单数',
                type: 'bar',
                data: []
            }]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis.axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(parseFloat(fe_rep.fe_rep_product_week[YFID][i].ana13) - parseFloat(fe_rep.fe_rep_product_week[YFID][i].z_xl));
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].ana13);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis.axisLabel.show = true;
            this.option.grid = {
                left: 72,
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    productionSave: {
        option: {
            title: {
                text: "制造成本节约图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            legend: {
                data: ['理论制造成本', '实际制造成本', '生产率'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "money")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "money")}`;
                        str += `<br />${params[2].marker}${params[2].seriesName}:${numType(params[2].value, "percent")}`;
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '理论制造成本',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '实际制造成本',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '生产率',
                    yAxisIndex: 1,
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(numType(fe_rep.fe_rep_product_week[YFID][i].c1, "float"));
                this.option.series[1].data.push(numType(fe_rep.fe_rep_product_week[YFID][i].c2, "float"));
                this.option.series[2].data.push(numType(fe_rep.fe_rep_product_week[YFID][i].c4 == 0 ? 0 : 1 / fe_rep.fe_rep_product_week[YFID][i].c4, "float"));
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 84,
                top: 60,
                right: 24,
                bottom: 24
            };
        }
    },
    profitPerformance: {
        option: {
            title: {
                text: "产品利润表现统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                axisLabel: {
                    show: false
                }
            },
            legend: {
                data: ['营业额', '毛利润', '去广告毛利', '去市投毛利'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "money")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '营业额',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '毛利润',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '去广告毛利',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '去市投毛利',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis.axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].ana15);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].毛利润);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].去广告毛利);
                this.option.series[3].data.push(fe_rep.fe_rep_product_week[YFID][i].去市投毛利);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis.axisLabel.show = true;
            this.option.grid = {
                left: 84,
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    totalAdvantage: {
        option: {
            title: {
                text: "竞争力统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
            },
            legend: {
                data: ['高端消费者', '中端消费者', '低端消费者'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "percent")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '高端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '中端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '低端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.grid = {
                left: 36,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].jzl1);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].jzl2);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].jzl3);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.grid = {
                left: 36,
                top: 60,
                right: "10%",
                bottom: 40
            };
        }
    },
    priceAdvantage: {
        option: {
            title: {
                text: "价格接受度统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show:false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            legend: {
                data: ['高端消费者', '中端消费者', '低端消费者', '折前价格'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "percent")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "percent")}`;
                        str += `<br />${params[2].marker}${params[2].seriesName}:${numType(params[2].value, "percent")}`;
                        str += `<br />${params[3].marker}${params[3].seriesName}:${numType(params[3].value, "money")}`;
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '高端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '中端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '低端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '折前价格',
                    yAxisIndex: 1,
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].p1);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].p2);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].p3);
                this.option.series[3].data.push(fe_rep.fe_rep_product_week[YFID][i].price);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 36,
                top: 60,
                right: 60,
                bottom: 40
            };
        }
    },
    qualityAdvantage: {
        option: {
            title: {
                text: "质量喜好度统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            legend: {
                data: ['高端消费者', '中端消费者', '低端消费者', '科技先进度'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "percent")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "percent")}`;
                        str += `<br />${params[2].marker}${params[2].seriesName}:${numType(params[2].value, "percent")}`;
                        str += `<br />${params[3].marker}${params[3].seriesName}:${numType(params[3].value, "percent")}`;
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '高端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '中端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '低端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '科技先进度',
                    yAxisIndex: 1,
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].q1);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].q2);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].q3);
                this.option.series[3].data.push(fe_rep.fe_rep_product_week[YFID][i].kj);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 36,
                top: 60,
                right: 36,
                bottom: 40
            };
        }
    },
    brandAdvantage: {
        option: {
            title: {
                text: "品牌熟知度统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            legend: {
                data: ['高端消费者', '中端消费者', '低端消费者', '周总广告量'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "percent")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "percent")}`;
                        str += `<br />${params[2].marker}${params[2].seriesName}:${numType(params[2].value, "percent")}`;
                        str += `<br />${params[3].marker}${params[3].seriesName}:${numType(params[3].value, "money")}`;
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '高端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '中端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '低端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '周总广告量',
                    yAxisIndex: 1,
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].k1);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].k2);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].k3);
                this.option.series[3].data.push(fe_rep.fe_rep_product_week[YFID][i].ad);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 36,
                top: 60,
                right: 84,
                bottom: 40
            };
        }
    },
    channelAdvantage: {
        option: {
            title: {
                text: "渠道满意度统计图",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: [
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                },
                {
                    type: 'value',
                    axisLabel: {
                        show: false
                    }
                }
            ],
            legend: {
                data: ['高端消费者', '中端消费者', '低端消费者', '当周地产总价值'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        str += `<br />${params[0].marker}${params[0].seriesName}:${numType(params[0].value, "percent")}`;
                        str += `<br />${params[1].marker}${params[1].seriesName}:${numType(params[1].value, "percent")}`;
                        str += `<br />${params[2].marker}${params[2].seriesName}:${numType(params[2].value, "percent")}`;
                        str += `<br />${params[3].marker}${params[3].seriesName}:${numType(params[3].value, "money")}`;
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '高端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '中端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '低端消费者',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '当周地产总价值',
                    yAxisIndex: 1,
                    type: 'bar',
                    itemStyle: {
                        normal: {
                            opacity: 0.5,
                        },
                    },
                    data: []
                }
            ]
        },
        initialize: function () {
            this.option.legend.show = false;
            this.option.tooltip.show = false;
            this.option.title.show = false;
            this.option.yAxis[0].axisLabel.show = false;
            this.option.yAxis[1].axisLabel.show = false;
            this.option.grid = {
                left: 10,
                top: 10,
                right: 10,
                bottom: 24
            };
            this.option.xAxis.data = [];
            this.option.series[0].data = [];
            this.option.series[1].data = [];
            this.option.series[2].data = [];
            this.option.series[3].data = [];
            for (let i = 0; i < fe_rep.fe_rep_product_week[YFID].length; i++) {
                this.option.xAxis.data.push(numType(fe_rep.fe_rep_product_week[YFID][i].hanad, "date2"));
                this.option.series[0].data.push(fe_rep.fe_rep_product_week[YFID][i].s1);
                this.option.series[1].data.push(fe_rep.fe_rep_product_week[YFID][i].s2);
                this.option.series[2].data.push(fe_rep.fe_rep_product_week[YFID][i].s3);
                this.option.series[3].data.push(fe_rep.fe_rep_product_week[YFID][i].channel);
            }
        },
        bigInitialize: function () {
            this.option.legend.show = true;
            this.option.tooltip.show = true;
            this.option.title.show = true;
            this.option.yAxis[0].axisLabel.show = true;
            this.option.yAxis[1].axisLabel.show = true;
            this.option.grid = {
                left: 48,
                top: 60,
                right: 84,
                bottom: 40
            };
        }
    },
    totalChainFlow: {
        option: {
            title: {
                text: "行业间交易统计",
                show: false
            },
            xAxis: {
                type: 'category',
                data: []
            },
            yAxis: {
                type: 'value',
                axisLabel: {
                    show:false
                }
            },
            legend: {
                data: ['本行业公开市场销售额', '本行业公开市场销售额+向下游销售额', '本行业公开市场销售额+向下游销售额+下游向公开市场采购总额总额'],
                type: "scroll",
                top: 22,
                left: "left",
                show: false
            },
            tooltip: {
                trigger: 'axis',
                formatter: function (params) {
                    let str = "";
                    if (params.length > 0) {
                        str = params[0].axisValueLabel;
                        for (let i = 0; i < params.length; i++) {
                            str += `<br />${params[i].marker}${params[i].seriesName}:${numType(params[i].value, "money")}`
                        }
                    }
                    return str;
                },
                show: false
            },
            series: [
                {
                    name: '本行业公开市场销售额',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '本行业公开市场销售额+向下游销售额',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                },
                {
                    name: '本行业公开市场销售额+向下游销售额+下游向公开市场采购总额总额',
                    data: [],
                    lineStyle: {
                        normal: {
                            width: 1,
                        }
                    },
                    type: 'line'
                }
            ]
        },
        initialize: function () {
            if (fe_rep.fe_rep_cust.hy == '0003') {
                this.option = {
                    graphic: {
                        elements: [
                            {
                                type: "text",
                                left: "center",
                                top: "middle",
                                style: {
                                    text: "零售商无行业间交易统计图",
                                    font: 'normal 20px "Microsoft YaHei", sans-serif',
                                    textAlign: 'center'
                                }
                            }
                        ]
                    }
                }
            }
            else {
                this.option.legend.show = false;
                this.option.tooltip.show = false;
                this.option.title.show = false;
                this.option.yAxis.axisLabel.show = false;
                this.option.grid = {
                    left: 10,
                    top: 10,
                    right: 10,
                    bottom: 24
                };
                this.option.xAxis.data = [];
                this.option.series[0].data = [];
                this.option.series[1].data = [];
                this.option.series[2].data = [];
                for (let i = 0; i < fe_rep.fe_rep_hy.length; i++) {
                    this.option.xAxis.data.push(numType(fe_rep.fe_rep_hy[i].hanad, "date2"));
                    this.option.series[0].data.push(numType(fe_rep.fe_rep_hy[i].thy_ana15, "float"));
                    this.option.series[1].data.push(numType(parseFloat(fe_rep.fe_rep_hy[i].thy_ana15) + parseFloat(fe_rep.fe_rep_hy[i].thy_orders), "float"));
                    this.option.series[2].data.push(numType(parseFloat(fe_rep.fe_rep_hy[i].thy_ana15) + parseFloat(fe_rep.fe_rep_hy[i].thy_orders) + parseFloat(fe_rep.fe_rep_hy[i].hy_buys), "float"));
                }
            }
        },
        bigInitialize: function () {
            if (fe_rep.fe_rep_cust.hy != '0003') {
                this.option.legend.show = true;
                this.option.tooltip.show = true;
                this.option.title.show = true;
                this.option.yAxis.axisLabel.show = true;
                this.option.grid = {
                    left: 107,
                    top: 80,
                    right: "10%",
                    bottom: 40
                };
            }
        }
    }
}